<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
?>

<!-- JavaScript -->
<script type="text/javascript" src="<?= base_url() ?>js/wufoo.js"></script>
<!--<script src="<?= base_url() ?>js/chosen.jquery.js" type="text/javascript"></script>-->
<!-- CSS -->
<!--<link rel="stylesheet" type="text/css" href="<?= base_url() ?>css/form/form.css" media="screen, tv, projection" title="Default" />-->
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/datepicker.css" media="screen, tv, projection" title="Default" />
<script type="text/javascript" src="<?= base_url() ?>js/datepicker.js"></script>
<link rel="stylesheet" href="<?php echo base_url() ?>css/chosen.css" />
<style type="text/css">
table.stats{
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif ;
	font-weight: normal;
	font-size: 11px;
	width: 580px;
	border: 0px;
	border-collapse: collapse;
	border-spacing: 0px;}

table.stats tr.head{
	background-color: #E73737;
	color: #fff;
	padding: 4px;
	border: 1px #000000 solid;
	height: 30px;
	font-weight: bold;}

table.stats td{
	padding: 4px;
	font-size: 12px;
	height:20px;
}

</style>
<?
$str_kolasi='';
if($detail_pustaka->HAL_ROMAWI != '')
	$str_kolasi .= $detail_pustaka->HAL_ROMAWI.', ';
if($detail_pustaka->HAL_ANGKA != '')
	$str_kolasi .= $detail_pustaka->HAL_ANGKA.' hal.: ';
if($detail_pustaka->ILUSTRASI == '1')
	$str_kolasi .= ' ilus.: ';
if($detail_pustaka->INDEX == '1')
	$str_kolasi .= ' ind.: ';
if($detail_pustaka->HAL_ANGKA != '')
	$str_kolasi .= $detail_pustaka->DIMENSI_BUKU.' cm. ';
?>
<div>
<table class="stats" style="font-size:12px; border-collapse:collapse;width:580px;" border=1>
	<tr class="head"><td colspan="3" align="center"><b>Detail Pustaka</b></td></tr>
	<tr><td width="120">Kode Buku </td><td width="330"><?php echo $detail_pustaka->KODE_BUKU?></td><td valign="top" rowspan="11">
		<img width="110" height="130" src="<?= (is_file('uploads/pustaka/'.$detail_pustaka->COVER_BUKU) ? base_url().'uploads/pustaka/'.$detail_pustaka->COVER_BUKU : base_url().'uploads/pustaka/default.png') ?>"></td></tr>
	<tr><td>Judul </td><td><?php echo $detail_pustaka->JUDUL_BUKU?></td></tr>
	<tr><td>Jenis Pustaka </td><td><?php echo $detail_pustaka->NAMA_JENIS?></td></tr>
	<tr><td>Pengarang </td><td><?php echo $detail_pustaka->NAMA_PENULIS?></td></tr>
	<tr><td>Penerbit </td><td><?php echo $detail_pustaka->NAMA_PENERBIT?></td></tr>
	<tr><td>Kolasi </td><td><?php echo $str_kolasi?></td></tr>
	<tr><td>Rak </td><td><?php echo $detail_pustaka->NAMA_RAK?></td></tr>
	<tr><td>Katalog </td><td><?php echo $detail_pustaka->NAMA_KATALOG?></td></tr>
	<tr><td>Tahun Terbit </td><td><?php echo $detail_pustaka->TAHUN_TERBIT?></td></tr>
	<tr><td>Harga Satuan </td><td><?php echo $detail_pustaka->HARGA_SATUAN?></td></tr>
	<tr><td>Abstraksi </td><td><i><?php echo $detail_pustaka->ABSTRAKSI?></i></td></tr>
</table><br>

<table class="stats" style="font-size:12px; border-collapse:collapse;width:580px;" border=1>
	<tr class="head"><td colspan="3" align="center"><b>Detail Eksemplar</b></td></tr>
	<tr class="head">
		<td width="120" align="center"><b>Kode Eksemplar</b></td>
		<td width="120" align="center"><b>Status</b></td>
	</tr>
	<?foreach($detail_eks->result() as $row){?>
		<tr><td><?php echo $row->KODE_EKSEMPLAR?></td><td align="center"><?php if($row->STATUS == 1) echo 'ADA'; else echo 'TERPINJAM'; ?></td></tr>
	<?}?>
</table><br>

</div>